
public class SwitchCaseDemo {

	public static void main(String[] args) {
		int month = 8;
		String monthsInString;
		
		switch(month)
		{
			case 1 :
				monthsInString = "January";
				System.out.println("January");
				break;
			case 2 :
				monthsInString = "February";
				System.out.println("February");
				break;
			case 3 :
				monthsInString = "March";
				System.out.println("March");
				break;
				
			default:
				monthsInString = "Invalid number for month";
				System.out.println("Invalid number for month");
				break;
		}
	}
}
